package cn.xscrum.demo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.xscrum.demo.mapper.HuanchengtestMapper;
import cn.xscrum.demo.domain.Huanchengtest;
import cn.xscrum.demo.service.IHuanchengtestService;
import cn.xscrum.common.core.text.Convert;

/**
 * 换乘优惠大屏可视化Service业务层处理
 * 
 * @author xscrum
 * @date 2020-11-26
 */
@Service
public class HuanchengtestServiceImpl implements IHuanchengtestService 
{
    @Autowired
    private HuanchengtestMapper huanchengtestMapper;

    /**
	 * 查询换乘优惠大屏可视化
     * 
     * @param id 换乘优惠大屏可视化ID
     * @return 换乘优惠大屏可视化
     */
    @Override
    public Huanchengtest selectHuanchengtestById(Long id)
    {
        return huanchengtestMapper.selectHuanchengtestById(id);
    }

    /**
	 * 查询换乘优惠大屏可视化列表
     * 
     * @param huanchengtest 换乘优惠大屏可视化
     * @return 换乘优惠大屏可视化
     */
    @Override
    public List<Huanchengtest> selectHuanchengtestList(Huanchengtest huanchengtest)
    {
        return huanchengtestMapper.selectHuanchengtestList(huanchengtest);
    }

    /**
	 * 新增换乘优惠大屏可视化
     * 
     * @param huanchengtest 换乘优惠大屏可视化
     * @return 结果
     */
    @Override
    public int insertHuanchengtest(Huanchengtest huanchengtest)
    {
        return huanchengtestMapper.insertHuanchengtest(huanchengtest);
    }

    /**
	 * 修改换乘优惠大屏可视化
     * 
     * @param huanchengtest 换乘优惠大屏可视化
     * @return 结果
     */
    @Override
    public int updateHuanchengtest(Huanchengtest huanchengtest)
    {
        return huanchengtestMapper.updateHuanchengtest(huanchengtest);
    }

    /**
	 * 删除换乘优惠大屏可视化对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteHuanchengtestByIds(String ids)
    {
        return huanchengtestMapper.deleteHuanchengtestByIds(Convert.toStrArray(ids));
    }

    /**
	 * 删除换乘优惠大屏可视化信息
     * 
     * @param id 换乘优惠大屏可视化ID
     * @return 结果
     */
    @Override
    public int deleteHuanchengtestById(Long id)
    {
        return huanchengtestMapper.deleteHuanchengtestById(id);
    }
}
